package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Mobile   string `gorm:"type:char(11);not null;comment:手机号"`
	Password string `gorm:"type:char(32);not null;comment:密码"`
}

func (u *User) CreateUser() error {
	return Db.Create(&u).Error
}
